package c2.cross.business.jungle.data;

import c2.advanced.business.base.KvData;
import cate.game.pvp.jungle.core.JungleBuff;
import cate.game.pvp.jungle.core.JungleTaskData;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@NoteClass("丛林冒险数据")
public class JungleMainKV extends KvData {
    @NoteField("当前冒险任务")
    public Map<String, JungleTaskData> tasks;
    @NoteField("当前BUFF")
    public List<JungleBuff> buffs;
    @NoteField("协助占用情况")
    public Map<String, Boolean> supports;

    @Override
    public void init(String theKey) {
        super.init(theKey);
        if (tasks == null) {
            tasks = new HashMap<>();
        }
        if (buffs == null) {
            buffs = new ArrayList<>();
        }
        if (supports == null) {
            supports = new HashMap<>();
        }
    }
}
